
class DictItem {

  title: string
  value: number

  constructor(title: string, value: number) {
    this.title = title
    this.value = value
  }

  toString(){
    return this.title
  }
}

export const EDUCATIONS = [
  new DictItem('大专以下',100),
  new DictItem('大专',200),
  new DictItem('本科',300),
  new DictItem('研究生',400),
  new DictItem('博士及以上',500)
]

export const LEVELS = [
  new DictItem('基本授权一级',100),
  new DictItem('基本授权二级',200),
  new DictItem('不限',300)
]

let ques_type = new Map<number,string>()
ques_type.set(100,'练习')
ques_type.set(200,'考试')
ques_type.set(300,'均可')
export const QUESTION_TYPE = ques_type

let ques_cate = new Map<number,string>()
ques_cate.set(100,'单选')
ques_cate.set(200,'多选')
ques_cate.set(300,'填空')
ques_cate.set(400,'判断')
export const QUESTION_CATEGORY = ques_cate

let ques_media = new Map<number,string>()
ques_media.set(100,'图文')
ques_media.set(200,'视频')
ques_media.set(300,'音频')
export const QUESTION_MEDIA = ques_media

let ques_diff = new Map<number,string>()
ques_diff.set(100,'简单')
ques_diff.set(200,'适中')
ques_diff.set(300,'困难')
ques_diff.set(400,'极难')
export const QUESTION_DIFFICULTY = ques_diff

export default {
  EDUCATIONS:EDUCATIONS,
  LEVELS:LEVELS,

  QUESTION_TYPE:QUESTION_TYPE,
  QUESTION_CATEGORY:QUESTION_CATEGORY,
  QUESTION_MEDIA:QUESTION_MEDIA,
  QUESTION_DIFFICULTY:QUESTION_DIFFICULTY
}
